const goods = {
	state:{
		detailPopupState:false,
		detailData:{},
		proSpecsState:true
	},
	mutations:{
		SET_DETAIL_STATE(state,value){
			state.detailPopupState = value
		},
		SET_DETAIL_DATA(state,value){
			value.description = value.description.replace(/\n/g,"<br/>")
			state.detailData = value
		},
		SET_SPECS_STATE(state,value){
			state.proSpecsState = value
		},
	}
}

export default goods